package IO;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;

public class Test {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("day01\\file.txt");

//        fos.write(97);
//        for(int i=0;i<26;i++){
//            fos.write(97+i);
//        }
//        System.out.println("输出完毕");
//        fos.close();


//        byte[] bys = {87,88,23,56,98};
//        fos.write(bys);

        byte[] bys = "abcdef".getBytes();
        fos.write(bys,0, bys.length);

    }
}
